li = [5,1,4,8,3]
l=[ ]
for l in li:
    li.insert(0,l)
    li=l
    print(1)
